/**********************************************************************
 * SailmiPIM - modular cross-platform feature Personal Information Manager Tools.
 * Copyright(C) 2006-2014  Georg Rudoy
 *
 * Distributed under the Boost Software License, Version 1.0.
 *(See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
 **********************************************************************/

#include "infoserverwrapper.h"
#include "sailmipim/core/icoreproxy.h"
namespace SailmiPIM
{
namespace DBus
{
	InfoServerWrapper::InfoServerWrapper(IInfo *info)
	: W_ { info }
	{
	}

	void InfoServerWrapper::SetProxy(ICoreProxy_ptr proxy)
	{
		W_->SetProxy(proxy);
	}

	void InfoServerWrapper::SetPluginInstance(QObject *instance)
	{
		W_->SetPluginInstance(instance);
	}

	void InfoServerWrapper::Init(ICoreProxy_ptr proxy)
	{
		W_->Init(proxy);
	}

	void InfoServerWrapper::SecondInit()
	{
		W_->SecondInit();
	}

	void InfoServerWrapper::Release()
	{
		W_->Release();
	}

	QByteArray InfoServerWrapper::GetUniqueID() const
	{
		return W_->GetUniqueID();
	}

	QString InfoServerWrapper::GetName() const
	{
		return W_->GetName();
	}

    const ICoreProxy_ptr& InfoServerWrapper::GetProxy(){
        return W_->GetProxy();
    }

    bool InfoServerWrapper::IsCore() const{
        return true;
    }

	QString InfoServerWrapper::GetInfo() const
	{
		return W_->GetInfo();
	}

	QIcon InfoServerWrapper::GetIcon() const
	{
		return W_->GetIcon();
	}
}
}
